<template>
  <div class="">
    <van-cell
      class="article-item"
      @click="$router.push(`/houseDetails/${info.houseCode}`)"
    >
      <div class="HouseItem_house">
        <div class="HouseItem_img">
          <img :src="info.houseImg" alt="" />
        </div>
        <div class="HouseItem_content">
          <h3 class="HouseItem_title">{{ info.title }}</h3>
          <div class="HouseItem_desc">{{ info.desc }}</div>
          <van-tag color="#e1f5f8" text-color="#39becd">{{
            info.tags
          }}</van-tag>
          <div class="HouseItem_price">
            <span>{{ info.price }}</span
            >元/月
          </div>
        </div>
      </div>
    </van-cell>
  </div>
</template>
<script>
export default {
  name: 'LookForHousingLtem',
  props: {
    info: {
      type: Object,
      default: () => ({})
    }
  },
  data () {
    return {}
  },
  computed: {},
  watch: {},
  methods: {}
}
</script>
<style lang="less" scoped>
.HouseItem_house {
  height: 120px;
  width: 100%;
  background-color: #fff;
  padding-top: 18px;
  border-bottom: 1px solid #e5e5e5;
  display: flex;
  .HouseItem_img {
    width: 106px;
    height: 80px;
    img {
      width: 100%;
      height: 100%;
    }
  }
  .HouseItem_content {
    overflow: hidden;
    line-height: 22px;
    padding-left: 12px;
    display: flex;
    flex-direction: column;
    .HouseItem_title {
      margin: 0;
      font-size: 15px;
      color: #394043;
    }
    .HouseItem_desc {
      font-size: 12px;
      color: #afb2b3;
    }
    .HouseItem_price {
      font-size: 12px;
      color: #fa5741;
      span {
        font-size: 16px;
        font-weight: bolder;
      }
    }
  }
}
</style>
